package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IExpenseTypeDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.ExpenseType;
import com.ricchieri.service.interf.IExpenseTypeService;

@Transactional(readOnly = true)
public class ExpenseTypeService implements IExpenseTypeService, Serializable {
	private static final long serialVersionUID = -7638124746778605179L;
	IExpenseTypeDao expenseTypeDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<ExpenseType> getAllExpenseType() {
		BasicFilter filter = new BasicFilter();
		return expenseTypeDao.getAllExpenseType(filter);
	}

	public IExpenseTypeDao getExpenseTypeDao() {
		return expenseTypeDao;
	}

	public void setExpenseTypeDao(IExpenseTypeDao expenseTypeDao) {
		this.expenseTypeDao = expenseTypeDao;
	}
}
